﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Sigil;

namespace SigilTests
{
	[TestClass, System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
	public partial class SizeOf
	{
		[TestMethod]
		public void Simple()
		{
			var e1 = Emit<Func<int>>.NewDynamicMethod("E1");
			e1.SizeOf<int>();
			e1.Return();

			var d1 = e1.CreateDelegate();

			Assert.AreEqual(sizeof(int), d1());
		}
	}
}